package com.fishery.memo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.memo.entity.Task;

import java.util.List;

/**
 * @author
 * @since
 */
public interface TaskService extends IService<Task> {

    public boolean createTask(Task task);

    public boolean updateTask(Task task);

    public boolean deleteTask(String taskId);

    public boolean pauseTask(String taskId);

    public boolean resumeTask(String taskId);

    public List<Task> searchTask(String userId);

    public IPage<Task> searchTask(String userId,Integer page,Integer size);

    public List<Task> searchRunningTask();

    public Task searchTaskById(String taskId);
}
